//Apple.java
package adapter.objectadapter;

/**
 *@author:youtubezou
 *@version:2012-7-16
 */
public class Apple {
	private String name;
	private double weight;
	
	public Apple(String name, double weight){
		this.name = name;
		this.weight = weight;
	}
	
	public String getName(){
		return name;
	}
	
	public double getWeight(){
		return weight;
	}
	
	public String toString(){
		return "Apple: " + name + "\n" +
				"weight: " + weight;
	}
}
